RAIS  3.2
C:/Projekte/RAIS/common/Context.cs
Go to the documentation of this file.
00001 
00028 using System;
00029 using System.Collections.Generic;
00030 using System.Data;
00031 using System.Text;
00032 
00033 namespace RAIS.Common.Localization
00034 {
00035     [Serializable]
00036     public class Context : DBObject
00037         {
00038                 #region Constructors
00039         string visibleName;
00040         public string VisibleName
00041         {
00042             get 
00043             {
00044                 return string.IsNullOrEmpty(visibleName) ? Name : visibleName;
00045             }
00046             set { visibleName = value; }
00047         }
00048                 public Context()
00049                 { }
00050                 public Context(IDataRecord record)
00051                 {
00052                         this.ID = (int)record["PK Context ID"];
00053                         this.Name = record["Context Name"].ToString();
00054             this.VisibleName = record["Context Visible Name"] is DBNull ? "" : record["Context Visible Name"].ToString();
00055                 }
00056                 #endregion
00057         }
00058 }